import { SupplierFormStatusEnum, FeedbackTypeEnum } from '@/constants/enum';
export interface ISupplierListResult {
  formNo: string;
  formType: string;
  processInstanceId: string;
  partCode: string;
  partName: string;
  supplierName: string;
  supplierCode: string;
  dataYear: string;
  status: keyof typeof SupplierFormStatusEnum;
  partSuitCode: string[];
}

export interface ISupplierItem {
  supplierNo: string;
  supplierCode: string;
  supplierName: string;
  supplierType: string;
  formNum: string;
}

export interface ISupplierParams {
  supplierName?: string;
  formType?: string;
  dataYear?: string;
  status?: keyof typeof SupplierFormStatusEnum;
  codeOrPartName?: string;
  queryPartSuitCode?: string;
  feedbackType?: keyof typeof FeedbackTypeEnum;
}

export interface ISupplierSummary {
  supplierCount: string;
  formCount: string;
  noCommitCount: string;
}

export interface ITraceParams {
  nodeNo: string;
  partCode: string;
  partName: string;
  num: string;
  unit: string;
  dataYear: string;
  remark: string;
  supplierNo: string;
  supplierCode: string;
  supplierName: string;
  supplierUserIds: string[];
}
export interface IBatchTraceParams {
  nodeNo: string;
  partCode: string;
  partName: string;
  num: string;
  unit: string;
  dataYear: string;
  supplierNo: string;
  supplierName: string;
}

export interface IManufactureResult {
  nodeNo: string;
  dataType: string;
  nodeName: string;
  nodeCode: string;
  dosage: string;
  unit: string;
  remark: string;
}

export interface ISupplierFactorDetail {
  formNo: string;
  factor: string;
  factorUnit: string;
  certificationOrgName: string;
  reportName: string;
  reportUrl: string;
  dataYear: string;
}

export interface IManufactureItem {
  dataType: string;
  nodeName: string;
  dosage: string;
  unit: string;
  useRate: string;
  remark: string;
}
